ImageReward: Learning and Evaluating Human Preferences for Text-to-Image Generation